.class public Lcom/xingbook/park/ui/bh;
.super Landroid/widget/LinearLayout;


# instance fields
.field private a:Landroid/view/View;

.field private b:Landroid/view/View;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/TextView;

.field private e:Landroid/widget/TextView;

.field private f:Landroid/widget/TextView;

.field private g:Landroid/widget/ImageView;


# direct methods
.method public constructor <init>(Landroid/content/Context;F)V
    .locals 11

    const/high16 v10, 0x4208

    const v9, 0x7f0a0023

    const/4 v8, -0x2

    const/4 v7, -0x1

    const/4 v6, 0x0

    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/bh;->setOrientation(I)V

    const/high16 v0, 0x41a0

    mul-float/2addr v0, p2

    float-to-int v0, v0

    new-instance v1, Landroid/view/View;

    invoke-direct {v1, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/park/ui/bh;->a:Landroid/view/View;

    iget-object v1, p0, Lcom/xingbook/park/ui/bh;->a:Landroid/view/View;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    const/high16 v3, 0x41e0

    mul-float/2addr v3, p2

    float-to-int v3, v3

    invoke-direct {v2, v7, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/park/ui/bh;->a:Landroid/view/View;

    invoke-virtual {p0, v1}, Lcom/xingbook/park/ui/bh;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/view/View;

    invoke-direct {v1, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/park/ui/bh;->b:Landroid/view/View;

    iget-object v1, p0, Lcom/xingbook/park/ui/bh;->b:Landroid/view/View;

    const v2, -0x161617

    invoke-virtual {v1, v2}, Landroid/view/View;->setBackgroundColor(I)V

    iget-object v1, p0, Lcom/xingbook/park/ui/bh;->b:Landroid/view/View;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    const/high16 v3, 0x4188

    mul-float/2addr v3, p2

    float-to-int v3, v3

    invoke-direct {v2, v7, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/park/ui/bh;->b:Landroid/view/View;

    invoke-virtual {p0, v1}, Lcom/xingbook/park/ui/bh;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/RelativeLayout;

    invoke-direct {v1, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1, v7}, Landroid/widget/RelativeLayout;->setBackgroundColor(I)V

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    const/high16 v3, 0x4316

    mul-float/2addr v3, p2

    float-to-int v3, v3

    invoke-direct {v2, v7, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {p0, v1}, Lcom/xingbook/park/ui/bh;->addView(Landroid/view/View;)V

    const/high16 v2, 0x428c

    mul-float/2addr v2, p2

    float-to-int v2, v2

    const/high16 v3, 0x4370

    mul-float/2addr v3, p2

    float-to-int v3, v3

    const/high16 v4, 0x4268

    mul-float/2addr v4, p2

    float-to-int v4, v4

    new-instance v5, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v5, v8, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iput v3, v5, Landroid/widget/RelativeLayout$LayoutParams;->rightMargin:I

    iput v2, v5, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iput v0, v5, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I

    new-instance v2, Landroid/widget/TextView;

    invoke-direct {v2, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/xingbook/park/ui/bh;->f:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/xingbook/park/ui/bh;->f:Landroid/widget/TextView;

    const/16 v3, 0x10

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v2, p0, Lcom/xingbook/park/ui/bh;->f:Landroid/widget/TextView;

    const v3, 0x421e6666

    mul-float/2addr v3, p2

    invoke-virtual {v2, v6, v3}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v2, p0, Lcom/xingbook/park/ui/bh;->f:Landroid/widget/TextView;

    const v3, -0xe74b13

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v2, p0, Lcom/xingbook/park/ui/bh;->f:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->setSingleLine()V

    iget-object v2, p0, Lcom/xingbook/park/ui/bh;->f:Landroid/widget/TextView;

    sget-object v3, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    iget-object v2, p0, Lcom/xingbook/park/ui/bh;->f:Landroid/widget/TextView;

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v2, p0, Lcom/xingbook/park/ui/bh;->f:Landroid/widget/TextView;

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v2, Landroid/widget/ImageView;

    invoke-direct {v2, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/xingbook/park/ui/bh;->g:Landroid/widget/ImageView;

    iget-object v2, p0, Lcom/xingbook/park/ui/bh;->g:Landroid/widget/ImageView;

    sget-object v3, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    iget-object v2, p0, Lcom/xingbook/park/ui/bh;->g:Landroid/widget/ImageView;

    invoke-virtual {v2, v5}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v2, p0, Lcom/xingbook/park/ui/bh;->g:Landroid/widget/ImageView;

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    const/high16 v2, 0x4220

    mul-float/2addr v2, p2

    float-to-int v2, v2

    new-instance v3, Landroid/widget/TextView;

    invoke-direct {v3, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v3, p0, Lcom/xingbook/park/ui/bh;->c:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/xingbook/park/ui/bh;->c:Landroid/widget/TextView;

    invoke-virtual {v3, v9}, Landroid/widget/TextView;->setId(I)V

    iget-object v3, p0, Lcom/xingbook/park/ui/bh;->c:Landroid/widget/TextView;

    const/16 v4, 0x50

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v3, p0, Lcom/xingbook/park/ui/bh;->c:Landroid/widget/TextView;

    mul-float v4, v10, p2

    invoke-virtual {v3, v6, v4}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v3, p0, Lcom/xingbook/park/ui/bh;->c:Landroid/widget/TextView;

    const v4, -0x99999a

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v3, p0, Lcom/xingbook/park/ui/bh;->c:Landroid/widget/TextView;

    invoke-virtual {v3, v6, v6, v6, v6}, Landroid/widget/TextView;->setPadding(IIII)V

    new-instance v3, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v3, v8, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v4, 0xb

    invoke-virtual {v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const/high16 v4, 0x42a0

    mul-float/2addr v4, p2

    float-to-int v4, v4

    iput v4, v3, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iput v0, v3, Landroid/widget/RelativeLayout$LayoutParams;->rightMargin:I

    iget-object v4, p0, Lcom/xingbook/park/ui/bh;->c:Landroid/widget/TextView;

    invoke-virtual {v4, v3}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v3, p0, Lcom/xingbook/park/ui/bh;->c:Landroid/widget/TextView;

    invoke-virtual {v1, v3}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v3, Landroid/widget/TextView;

    invoke-direct {v3, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v3, p0, Lcom/xingbook/park/ui/bh;->d:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/xingbook/park/ui/bh;->d:Landroid/widget/TextView;

    const/16 v4, 0x30

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v3, p0, Lcom/xingbook/park/ui/bh;->d:Landroid/widget/TextView;

    mul-float v4, v10, p2

    invoke-virtual {v3, v6, v4}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v3, p0, Lcom/xingbook/park/ui/bh;->d:Landroid/widget/TextView;

    const v4, -0x99999a

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v3, p0, Lcom/xingbook/park/ui/bh;->d:Landroid/widget/TextView;

    invoke-virtual {v3, v6, v6, v6, v6}, Landroid/widget/TextView;->setPadding(IIII)V

    new-instance v3, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v3, v8, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v2, 0xb

    invoke-virtual {v3, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const/high16 v2, 0x41f0

    mul-float/2addr v2, p2

    float-to-int v2, v2

    iput v2, v3, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    const/4 v2, 0x5

    invoke-virtual {v3, v2, v9}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    iput v0, v3, Landroid/widget/RelativeLayout$LayoutParams;->rightMargin:I

    iget-object v2, p0, Lcom/xingbook/park/ui/bh;->d:Landroid/widget/TextView;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v2, p0, Lcom/xingbook/park/ui/bh;->d:Landroid/widget/TextView;

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v2, Landroid/widget/TextView;

    invoke-direct {v2, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/xingbook/park/ui/bh;->e:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/xingbook/park/ui/bh;->e:Landroid/widget/TextView;

    const v3, 0x42d13333

    mul-float/2addr v3, p2

    invoke-virtual {v2, v6, v3}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v2, p0, Lcom/xingbook/park/ui/bh;->e:Landroid/widget/TextView;

    const v3, -0x8e2a06

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v2, p0, Lcom/xingbook/park/ui/bh;->e:Landroid/widget/TextView;

    const/16 v3, 0x11

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setGravity(I)V

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    const/high16 v3, 0x4316

    mul-float/2addr v3, p2

    float-to-int v3, v3

    invoke-direct {v2, v8, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v2, v6, v9}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    const/high16 v3, 0x40a0

    mul-float/2addr v3, p2

    float-to-int v3, v3

    iput v3, v2, Landroid/widget/RelativeLayout$LayoutParams;->rightMargin:I

    iget-object v3, p0, Lcom/xingbook/park/ui/bh;->e:Landroid/widget/TextView;

    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v2, p0, Lcom/xingbook/park/ui/bh;->e:Landroid/widget/TextView;

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/view/View;

    invoke-direct {v1, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    const v2, -0x333334

    invoke-virtual {v1, v2}, Landroid/view/View;->setBackgroundColor(I)V

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v3, 0x2

    invoke-direct {v2, v7, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iput v0, v2, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    iput v0, v2, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    invoke-virtual {v1, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {p0, v1}, Lcom/xingbook/park/ui/bh;->addView(Landroid/view/View;)V

    return-void
.end method


# virtual methods
.method public a(Lcom/xingbook/park/b/e;Z)V
    .locals 7

    const/16 v6, 0x8

    const/4 v2, 0x0

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->a()I

    move-result v0

    const/high16 v1, -0x8000

    if-ne v0, v1, :cond_2

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->f()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v1, ""

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    const-string v1, "."

    invoke-virtual {v0, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v1

    if-lez v1, :cond_0

    iget-object v1, p0, Lcom/xingbook/park/ui/bh;->g:Landroid/widget/ImageView;

    const/4 v4, 0x1

    const/4 v5, 0x0

    move v3, v2

    invoke-static/range {v0 .. v5}, Lcom/xingbook/c/k;->a(Ljava/lang/String;Landroid/widget/ImageView;IZZF)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bh;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v6}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bh;->g:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    :goto_0
    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->b()J

    move-result-wide v0

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/ui/bh;->setTime(J)V

    if-eqz p2, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/ui/bh;->b:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bh;->a:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    :goto_1
    invoke-virtual {p0, v2}, Lcom/xingbook/park/ui/bh;->setVisibility(I)V

    :goto_2
    return-void

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/ui/bh;->f:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/xingbook/park/b/e;->d()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bh;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bh;->g:Landroid/widget/ImageView;

    invoke-virtual {v0, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/ui/bh;->b:Landroid/view/View;

    invoke-virtual {v0, v6}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bh;->a:Landroid/view/View;

    invoke-virtual {v0, v6}, Landroid/view/View;->setVisibility(I)V

    goto :goto_1

    :cond_2
    invoke-virtual {p0, v6}, Lcom/xingbook/park/ui/bh;->setVisibility(I)V

    goto :goto_2
.end method

.method public setTime(J)V
    .locals 8

    const/4 v4, 0x1

    const/4 v7, 0x7

    const/4 v6, 0x5

    const/4 v0, 0x0

    const/4 v5, 0x2

    new-array v2, v7, [Ljava/lang/String;

    const-string v1, "\u661f\u671f\u65e5"

    aput-object v1, v2, v0

    const-string v1, "\u661f\u671f\u4e00"

    aput-object v1, v2, v4

    const-string v1, "\u661f\u671f\u4e8c"

    aput-object v1, v2, v5

    const/4 v1, 0x3

    const-string v3, "\u661f\u671f\u4e09"

    aput-object v3, v2, v1

    const/4 v1, 0x4

    const-string v3, "\u661f\u671f\u56db"

    aput-object v3, v2, v1

    const-string v1, "\u661f\u671f\u4e94"

    aput-object v1, v2, v6

    const/4 v1, 0x6

    const-string v3, "\u661f\u671f\u516d"

    aput-object v3, v2, v1

    const/16 v1, 0xc

    new-array v3, v1, [Ljava/lang/String;

    const-string v1, "\u4e00\u6708"

    aput-object v1, v3, v0

    const-string v1, "\u4e8c\u6708"

    aput-object v1, v3, v4

    const-string v1, "\u4e09\u6708"

    aput-object v1, v3, v5

    const/4 v1, 0x3

    const-string v4, "\u56db\u6708"

    aput-object v4, v3, v1

    const/4 v1, 0x4

    const-string v4, "\u4e94\u6708"

    aput-object v4, v3, v1

    const-string v1, "\u516d\u6708"

    aput-object v1, v3, v6

    const/4 v1, 0x6

    const-string v4, "\u4e03\u6708"

    aput-object v4, v3, v1

    const-string v1, "\u516b\u6708"

    aput-object v1, v3, v7

    const/16 v1, 0x8

    const-string v4, "\u4e5d\u6708"

    aput-object v4, v3, v1

    const/16 v1, 0x9

    const-string v4, "\u5341\u6708"

    aput-object v4, v3, v1

    const/16 v1, 0xa

    const-string v4, "\u5341\u4e00\u6708"

    aput-object v4, v3, v1

    const/16 v1, 0xb

    const-string v4, "\u5341\u4e8c\u6708"

    aput-object v4, v3, v1

    new-instance v1, Ljava/util/Date;

    invoke-direct {v1, p1, p2}, Ljava/util/Date;-><init>(J)V

    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v4

    invoke-virtual {v4, v1}, Ljava/util/Calendar;->setTime(Ljava/util/Date;)V

    invoke-virtual {v4, v7}, Ljava/util/Calendar;->get(I)I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    if-gez v1, :cond_1

    :goto_0
    iget-object v1, p0, Lcom/xingbook/park/ui/bh;->c:Landroid/widget/TextView;

    aget-object v0, v2, v0

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {v4, v5}, Ljava/util/Calendar;->get(I)I

    move-result v0

    if-gez v0, :cond_0

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/ui/bh;->d:Landroid/widget/TextView;

    invoke-virtual {v4, v5}, Ljava/util/Calendar;->get(I)I

    move-result v1

    aget-object v1, v3, v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/bh;->e:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v6}, Ljava/util/Calendar;->get(I)I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void

    :cond_1
    move v0, v1

    goto :goto_0
.end method
